package com.snowy.framework.wechatAuth.service;

import com.snowy.framework.wechatAuth.dto.req.WechatAppletAuthReq;
import com.snowy.framework.wechatAuth.dto.resp.WechatUserInfo;

/**
 * 微信小程序登录
 *
 * @author hjl
 */
public interface WechatAppletService {
    /**
     * 取小程序用户openId
     *
     * @param wechatAppletAuthReq
     * @return
     */
    String getAppletOpenId(WechatAppletAuthReq wechatAppletAuthReq);

    /**
     * 根据授权码取微信用户信息
     *
     * @param code
     * @return
     */
    WechatUserInfo getWechatUserInfo(String code, String appId, String appKey);
}
